<style type="text/css">
.exam_admin_tabs {
border: none;
background-image: none;
margin: 5px 0px 15px 0px;
padding: 3px;
background: #E9F4FA;
overflow: auto;
}
.exam_admin_tabs ul {
margin: 0px;
text-align: left;
font-weight: bold;
padding: 0;
float: left;
}
.exam_admin_tabs ul li {
padding: 0px;
font-size: 12px;
float: left;
}
.exam_admin_tabs ul li a {
padding: 5px 11px;
text-decoration: none;
color: #888;
border-bottom: none;
outline: none;
font-weight: bold;
float: left;
margin: 1px;
text-transform: capitalize;
}
.exam_admin_tabs ul li.active a {
background-color: white;
color: #444;
position: relative;
padding: 5px 9px;
float: left;
margin: 1px;  

border-top: 1px solid #ccc;
border-left: 1px solid #ccc;  
border-right: 1px solid #ccc;  
border-radius: 3px 3px 0px 0px;
-moz-border-radius: 3px 3px 0px 0px;
-webkit-border-radius: 3px 3px 0px 0px;       
}
</style>
<h2>
  <?php echo $this->translate('Exam') ?>
</h2>

<?php if( count($this->navigation) ): ?>
  <div class='exam_admin_tabs'>
    <?php      
      echo $this->navigation()->menu()->setContainer($this->navigation)->render()
    ?>
  </div>
<?php endif; ?>

<?php if( count($this->paginator) ): ?>
<form id='multidelete_form' name='multidelete_form' method="post" action="<?php echo $this->url();?>" onSubmit="return multiDelete()">
<table class='admin_table' style="width:100%">
  <thead>
    <tr>
      <th class='admin_table_short'><input onclick='selectAll();' type='checkbox' class='checkbox'  id="checkboxselect"/></th>
      <th><?php echo $this->translate("Title") ?></th>
      <th><?php echo $this->translate("Photo") ?></th>
      <th><?php echo $this->translate("Owner") ?></th>
      <th>
		<?php echo $this->translate("View count"); ?>
      </th>
      <th>
		<?php echo $this->translate("Test count"); ?>
      </th>      
      <th><?php echo $this->translate("Start Date") ?></th>
      <th><?php echo $this->translate("End Date") ?></th>    
 	  <th><?php echo $this->translate("Options") ?></th>
    </tr>
  </thead>
  <tbody>
  <?php $i=0;?>
    <?php foreach ($this->paginator as $item): ?>
      <?php $i++;?>
      <tr>
        <td><?php if(1) {?><input type='checkbox' class='checkbox' name='delete_<?php echo $item->getIdentity(); ?>' value="<?php echo $item->getIdentity(); ?>" /><?php }?></td>
        <td><a href="<?php echo $item->getHref();?>"><?php echo $item->title ?></a></td>
        <td><a href="<?php echo $item->getHref();?>"><?php echo $this->itemPhoto($item, 'thumb.icon'); ?></a></td>
        <td><a href="<?php echo $item->getOwner()->getHref();?>"><?php echo $item->getOwner()->username ?></a></td>
		<td>
            <?php echo $item->view_count; ?>
		</td>				
		<td>
            <?php echo $item->test_count; ?>
		</td>         
		<td>
            <?php echo $this->locale()->toDateTime($item->starttime); ?>
		</td>				
		<td>
            <?php echo $this->locale()->toDateTime($item->endtime); ?>
        </td>
        <td>
            <a href="#">View detail</a> | 
            <a href="#">Edit</a> | 
            <a href="#">Delete</a>

		            
        </td>
       
      </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<br />

<div class='buttons'  style="float:left">
  <button type='submit'><?php echo $this->translate("Delete Selected") ?></button>
</div>

</form>
<div class='buttons' style="float:left; margin-top:5px; margin-left:10px;">
</div>
<br/>
<div>
  <?php echo $this->paginationControl($this->paginator); ?>
</div>
<?php endif; ?>